package com.hyts.infodb.user.controller;

import org.apache.shiro.SecurityUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * project-name:infodb
 * package-name:com.hyts.infodb.user.controller
 * author:Libo/Alex
 * create-date:2019-05-19 19:59
 * copyright:libo-hyts-github
 * email:libo2dev@aliyun.com
 * description:此类主要用于:
 */
@RestController
@RequestMapping("/test")
public class DemoController {

    @RequestMapping("/do")
    public String test(){
        return SecurityUtils.getSubject().isAuthenticated()+"";
    }

}

